<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@page import="java.util.Vector"%>
<%@page import="model.*"%>
<jsp:useBean id="util" class="model.UtilForm" scope="session"></jsp:useBean>

<html:html xhtml="true" lang="true">
<head>
<title><bean:message key="welcome.title"/></title>
<html:base/>
<style type="text/css">
<!--
.style3 {
	font-size: 9px;
	color: #FF0000;
}
.style5 {color: #FF0000}
body {
	background-color: #FFFFFF;
}
-->
</style><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>&nbsp;</p>
<html:errors/>
<html:form action="/CadastroCliente">
<table width="421" height="214" border="0" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  <tr>
    <td colspan="4"><div align="center"><strong>Cadastro efetuado com Sucesso!</strong></div></td>
  </tr>
  <tr>
    <td><span class="style3">* Campos Obrigatorios</span></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><strong>Codigo Setor </strong></td>
    <td><div align="left">
    <html:text property="cod_setor" disabled="true" name="dadosSetor" size="60"></html:text>
    </div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="left"><strong>Nome</strong><span class="style5">*</span></div></td>
    <td><div align="left">
      <html:text property="nome_setor" disabled="true" name="dadosSetor" size="60"></html:text>
    </div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="left"><strong>Descri&ccedil;&atilde;o</strong><span class="style5">*</span></div></td>
    <td><div align="left">
      <html:text property="descricao_setor" disabled="true" name="dadosSetor" size="60"></html:text>
    </div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="left"><strong>Usuario Responsavel</strong><span class="style5">*</span></div></td>
    <td>
    	<select name ="selUnidade">
	    <%
	    	Vector usuario =(Vector) util.getVecusuario();	   
		   for(int i =0 ;i < usuario.size();i++ ) {
			  UsuarioForm unidadeBean = (UsuarioForm)usuario.get(i);
			  String sel = "";
			  UsuarioForm x = util.getUsuario();
			  if(x.getCod_usuario() == (unidadeBean.getCod_usuario()))
			  {
			  	sel = "selected";
			  }
			 %>
			<option value="<%=unidadeBean.getCod_usuario()%>"<%=sel%>>
			 <%=unidadeBean.getNome_usuario()%>
			</option>
		   <%}%>
		</select>

    </td>
    
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td></td>
    <td><html:link  action="Menu2"><bean:message key="menu.principal"/></html:link></td>
    
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</html:form>
</body>
</html:html>
